package cuiyt.offer;

import java.util.Arrays;

/**
 * @author cyt
 * @create 2020-05-19 18:56
 */
public class T14 {
    public static void main(String[] args) {
        int[] arr = {1, 1, 2, 2, 3, 3, 8,};
        Arrays.sort(arr);
        for (int i = 0; i < arr.length; i += 2) {
            if (arr[i] != arr[i + 1])
                System.out.println(arr[i]);
        }
    }

}
